package jp.eisbahn.mgapi.api.people;

import jp.eisbahn.mgapi.api.Request;
import jp.eisbahn.mgapi.api.Response;
import jp.eisbahn.mgapi.http.ContentType;
import jp.eisbahn.mgapi.http.HttpMethod;

public class PeopleRequest implements Request {
    
    public static final String BASE_URI = "/people/{userId}/{groupId}";
    
    private String userId;
    private String groupId;
    
    public String getUserId() {
        return userId;
    }
    
    public void setUserId(String userId) {
        this.userId = userId;
    }
    
    public String getGroupId() {
        return groupId;
    }
    
    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }
    
    @Override
    public String getUri() {
        return BASE_URI.replace("{userId}", userId).replace("{groupId}", groupId);
    }
    
    @Override
    public HttpMethod getHttpMethod() {
        return HttpMethod.GET;
    }

    @Override
    public Class<? extends Response> getResponseClass() {
        return PeopleResponse.class;
    }

    @Override
    public ContentType getContentType() {
        return ContentType.X_WWW_FORM_URLENCODED;
    }

}
